package com.airlines.crewassignment.entity;

import java.util.Date;

import org.joda.time.DateTime;

/**
 * @author xxxx
 * @date 2018年4月16日 
 * @description
 */



public class ValueForDate {
	private Date date;
	private DateTime dateTime;
	private int value;
	private int month; //yyyyMM
	private int year ; //yyyy
	
	public ValueForDate(Date date,int value){
		this.date = date;
		this.value = value;
		this.dateTime = new DateTime(date);
		this.year = this.dateTime.getYear();
		this.month=this.year*100+this.dateTime.getMonthOfYear();
	}
	
	public ValueForDate(){
		
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public DateTime getDateTime() {
		return dateTime;
	}

	public void setDateTime(DateTime dateTime) {
		this.dateTime = dateTime;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}
	
	
}
